package com.kitty.web.system.gameServer;

public class Response {
    private int code;
    private String msg;

    public Response(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public static Response ok(){
        Response response = new Response(1,"操作成功");
        return response;
    }
    public static Response error(String msg){
        Response response = new Response(99,msg);
        return response;
    }
}
